arr1 = ['红','黄','蓝','绿','青','紫']
arr2 = ['red','yellow','blue','green','cyan','purple']
color = dict(zip(arr1,arr2))
key = input('请输入您喜欢的颜色')
print(color.get(key)) if color.get(key) else print('输入有误')
